package com.mryx.demo.mapper;

import com.mryx.demo.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    public User login(@Param("user") User user);
    public User register(@Param("user") User user);
    public Integer updUserPwd(@Param("userId") Integer userId);
    public Integer updAddress(@Param("user")User user);
    public Integer getIntegral(@Param("uid")Integer uid);
    public Integer updPayPwd(@Param("user")User user);
    public Integer updPhone(@Param("user")User user);
    public Double getBalance(@Param("uid")Integer uid);
    public Integer updBalance(@Param("user")User user);
    public Integer Unsealing(@Param("user")User user);
    public Integer Prohibition(@Param("user")User user);
    public User getInfo(@Param("uid")Integer uid);
    public List<User> getAllUser();
    public User getUserByPhone(@Param("phoneNum")String pehoneNum);
    public Integer register(@Param("phoneNum")String pehoneNum);
    public Integer userCount();
}
